package cn.hsa.fqz.monitor.dao;

import cn.hsa.fqz.monitor.entity.TMonitorUserSubject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TMonitorUserSubjectMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TMonitorUserSubject record);

    int insertSelective(TMonitorUserSubject record);

    TMonitorUserSubject selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TMonitorUserSubject record);

    int updateByPrimaryKey(TMonitorUserSubject record);

    int deleteByEntityCodeAndSubjectAndUserAcct(@Param("entityCode") String entityCode, @Param("subjectCode") String subjectCode, @Param("userAcct") String userAcct);

    List<TMonitorUserSubject> selectByUserAcctAndEntityCode(@Param("entityCode") String entityCode, @Param("userAcct") String userAcct);
}
